package jmine.tec.web.front.domain;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import jmine.tec.persist.annotation.DiscriminatorComment;
import jmine.tec.report.impl.table.ReportTableBuilder;
import jmine.tec.web.front.report.RequestPropertyResolver;

/**
 * @author lundberg
 */
@Entity
@DiscriminatorValue("0")
@DiscriminatorComment("STRING")
public class BackOfficeRequestPropertyString extends BackOfficeRequestProperty {

    /**
     * {@inheritDoc}
     */
    @Override
    public void setUpReportColumn(ReportTableBuilder<BackOfficeRequest> builder) {
        builder.addStringColumn(this.getMnemonic(), this.getDescription(), new RequestPropertyResolver(this));
    }
}
